package ru.silviasaint.fridge.client.receipt.create;

import gwtupload.client.MultiUploader;
import ru.silviasaint.fridge.client.widgets.component.IngredientSearcher;

import com.axeiya.gwtckeditor.client.CKEditor;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;

public class CreateReceiptForm extends Composite {
	private static CreateReceiptFormUiBinder uiBinder = GWT
			.create(CreateReceiptFormUiBinder.class);

	interface CreateReceiptFormUiBinder extends
			UiBinder<Widget, CreateReceiptForm> {
	}

	public CreateReceiptForm() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiField
	TextBox name;
	@UiField
	IngredientSearcher searcher;
	@UiField
	MultiUploader uploader;
	@UiField
	MultiUploader pictures;
	@UiField
	CKEditor receipt;
	public CreateReceiptForm(String firstName) {
		initWidget(uiBinder.createAndBindUi(this));
	}

}
